
package com.zsrt.javase.c002.t02.p01;

import static org.junit.Assert.*;

import org.junit.Test;

public class BB {

	@Test
	public void testName() throws Exception {
		
		int sum=0;
		for(int i=1;i<100;i++){
			if(i%2==0){
				sum=sum-i;
			}else{
				sum=sum+i;
			}
		}
		System.out.println(sum);
	}
}
